<template>
  <view class="empty">
    <text class="h2"> 购物车空空如也 </text>
    <text class="det">赶紧犒劳一下自己吧</text>
    <view class="btn_view" @click="handToGo">去逛逛</view>
  </view>
</template>

<script setup>
import {} from "vue";
function handToGo() {
  uni.switchTab({ url: "/pages/home/index" });
}
</script>

<style lang="scss" scoped>
.empty {
  padding: 60rpx 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  .h2 {
    font-weight: 500;
    font-size: 32rpx;
    color: #333333;
    line-height: 38rpx;
  }
  .det {
    font-weight: 400;
    font-size: 28rpx;
    color: #999999;
    line-height: 33rpx;
    display: inline-block;
    margin: 10rpx auto 30rpx;
  }
  .btn_view {
    padding: 20rpx 50rpx;
    margin: 0 auto;
    border-radius: 28px;
    border: 2rpx solid #333333;
    text-align: center;
  }
}
</style>
